import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import * as serviceWorker from './serviceWorker';
import {Ion} from "cesium";
import {Provider} from 'mobx-react';
import {ConfigProvider} from "antd";
import zhCN from 'antd/es/locale/zh_CN';
import "cesium/Source/Widgets/widgets.css";
import "./styles/base_styles.scss";
//cesium的token;
Ion.defaultAccessToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI3MzkwZjcyMy0xZWQ3LTRiZGYtYjFmMS0zNGJlZmY4Zjg2MGQiLCJpZCI6MzQ5MDksImlhdCI6MTYwMTAxNjM3NH0.iyb_42re72E0sp3M6YBRqr-j2kdNKJsdl3wDCZBas3Q';
window.CESIUM_BASE_URL = 'Cesium/';
ReactDOM.render(
    <ConfigProvider locale={zhCN}>
        <Provider>
            <App />
        </Provider>
    </ConfigProvider>,
    document.getElementById('root')
);
serviceWorker.unregister();
